package com.cloud.service;

import com.cloud.model.system.SysOperationLog;
import com.cloud.repository.SysLogReporsitory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2017/11/13 0013.
 */
@Service
public class SysLogService {
    @Autowired
    private SysLogReporsitory sysLogReporsitory;

    @Transactional
    public void saveLog(SysOperationLog sysLog) {
        sysLogReporsitory.save(sysLog);
    }
}
